package com.proactive.webapp.dao;

import java.util.List;

import com.proactive.webapp.entity.Course;
import com.proactive.webapp.entity.Design;

public interface DesignDAO {
	public int insert(Design design);
	public int insertPractice(Design design);
	public void update(Design design);
	public void updateStatus(Design design);
	public void updateViewCount(Design design);
	public Design get(Design design);
	public Design getByWriter(Design design);//
	public Design getByLogin(Design design, String loginAccount);
	public List<Design> getListByType(String type, int start, int size);
	public List<Design> getListByCategory(String type, int categoryID, int start, int size);
	public List<Design> getListByCategoryTop3(int categoryID, int currentDesignID);
	public List<Design> getPracticeListByTop(int courseID, int top);
	public List<Design> getPracticeList(int courseID, int start, int size);
	public int countTotal(int categoryID);
	public int countPracticeTotal(int courseID);
	public List<Design> getListByMember(String account, int start, int size);
	public List<Design> getListByWriter(String account, int start, int size);
	public int countTotalByMember(String account);
	public int countTotalByWriter(String account);
}
